home *** CD-ROM | disk | FTP | other *** search
Text File | 1989-07-12 | 1.4 KB | 33 lines | [TEXT/GEOL] |
- Item 6731586 7-July-89 18:14
-
- From: ROSENSTEIN1 Rosenstein, Larry
-
- To: D0286 -> LEARNINGWAYS LearningWays, Rob Shaver, PRT
-
- cc: MACAPP.TECH$ MACAPP Tech
-
- Sub: re Setting Cursor
-
- Eric (via Curtis),
-
- MacApp 2.0 will call WaitNextEvent if the call is available (which is always is
- under System 6.0.x). WaitNextEvent suspends the application until either: (1)
- an event is available, (2) the cursor leaves a certain region, or (3) a certain
- length of time passes. MacApp will not call you idle code while the
- application is suspended. It is your responsibility to tell MacApp how often
- your program needs to get called. You can do this in one of two ways.
-
- First, you can set the fIdleFreq field of your Application, View, etc. object.
- This tells MacApp how often that object needs idle time.
-
- In your case, however, you would want to use the mechanism provided in
- TView.DoSetCursor. There is a region parameter, which MacApp passes to
- WaitNextEvent. If the mouse is outside that region, then WaitNextEvent will
- return. Since you want to get control as often as possible, you should set the
- region to an empty region (ie, a region that the mouse is never in). You must
- also return TRUE as the result of DoSetCursor, to let MacApp know that you have
- changed the cursor.
-
- Larry Rosenstein
-
-